package com.doctor.web.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.doctor.common.annotation.Excel;
import com.doctor.common.core.domain.BaseEntity;

/**
 * 活动预约对象 t_activity_reservation
 * 
 * @author ruoyi
 * @date 2024-05-24
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class ActivityReservation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;


    /** 活动id */
    @Excel(name = "活动id")
    private Long activityId;


    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    /** 活动封面 */
    @Excel(name = "活动封面")
    private String cover;

    /** 活动详情 */
    @Excel(name = "活动详情")
    private String details;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 活动地址 */
    @Excel(name = "活动地址")
    private String location;

    /** 联系号码 */
    @Excel(name = "联系号码")
    private String phone;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 评分 */
    @Excel(name = "评分")
    private Integer score;

    /** 评论 */
    @Excel(name = "评论")
    private String comment;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentTime;

    /** 预约码 */
    @Excel(name = "预约码")
    private String code;
}
